﻿//© 2010-2011 mOcean Mobile. A subsidiary of Mojiva, Inc. All Rights Reserved.

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using mOceanWindows;

namespace mOceanTest
{
    public partial class frmList : Form
    {
        public frmList()
        {
            InitializeComponent();
        }

        private void btnSimpleAd_Click(object sender, EventArgs e)
        {
            using (frmSimpleAd frm = new frmSimpleAd())
            {
                frm.ShowDialog();
            }
        }

        private void btnInterstitialAd_Click(object sender, EventArgs e)
        {
            using (AdInterstitialForm frm = new AdInterstitialForm())
            {
                frm.Size = new Size(400,400);
                frm.Control.DefaultImage = mOceanSamples.Properties.Resources.wait;
                frm.Control.Site = "8061";
                frm.Control.Zone = "16112";
                frm.Control.MinSizeX = 300;
                frm.Control.MinSizeY = 300;
                frm.CloseButtonShowTime = 5;
                using (Button btnClose = new Button())
                {
                    btnClose.Text = "Close";
                    btnClose.Location = new Point(10,10);
                    frm.CloseButton = btnClose;

                    frm.ShowDialog();
                }
            }

        }

        private void btnVideoAd_Click(object sender, EventArgs e)
        {
            using (frmVideoAd frm = new frmVideoAd())
            {
                frm.ShowDialog();
            }

        }

        private void btnDebug_Click(object sender, EventArgs e)
        {
            using (frmDebugSimpleAd frm = new frmDebugSimpleAd())
            {
                frm.ShowDialog();
            }
        }

        private void btnCallbacks_Click(object sender, EventArgs e)
        {
            using (frmCallbackSimpleAd frm = new frmCallbackSimpleAd())
            {
                frm.ShowDialog();
            }

        }
    }
}
